package com.sensen.controller;

import com.sensen.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/6/10.
 */
@RestController
@RequestMapping("/feign")
public class ConsumerController {

    @Autowired
    HelloService helloService;

    @RequestMapping(value = "/hello")
    public String helloConsumer(){
        return helloService.hello();
    }
}
